#!/usr/bin/php -e
<?php
/**
 * 服务器端运行的脚本
 * @author Changhe<xuwu125@gmail.com>
 * @2013-11-18 上午11:09:36
 **/
//error_reporting(E_ALL);

$_GET=array();
$_GET['m']='phpserver';
$_GET['a']='index';
$_GET['type']='index';

$_SERVER["HOME"] = "/var/www/microoa/";
$_SERVER["FCGI_ROLE"] = "RESPONDER";
$_SERVER["QUERY_STRING"] = "m=phpserver&a=index";
$_SERVER["REQUEST_METHOD"] = "GET";
$_SERVER["CONTENT_TYPE"] = "";
$_SERVER["CONTENT_LENGTH"] = "";
$_SERVER["REQUEST_URI"] = "/phpserver";
$_SERVER["DOCUMENT_URI"] = "/index.php";
$_SERVER["DOCUMENT_ROOT"] = "/var/www/microoa";
$_SERVER["SERVER_PROTOCOL"] = "HTTP/1.1";
$_SERVER["GATEWAY_INTERFACE"] = "CGI/1.1";
$_SERVER["SERVER_SOFTWARE"] = "nginx";
$_SERVER["REMOTE_ADDR"] = "218.109.14.9";
$_SERVER["REMOTE_PORT"] = "54146";
$_SERVER["SERVER_ADDR"] = "182.254.134.136";
$_SERVER["SERVER_PORT"] = "80";
$_SERVER["SERVER_NAME"] = "wei-oa.com";
$_SERVER['HTTP_REFERER']='http://wei-oa.com';
$_SERVER["HTTPS"] = "";
$_SERVER["HTTP_HOST"] = "wei-oa.com";
$_SERVER["HTTP_USER_AGENT"] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:25.0) Gecko/20100101 Firefox/25.0";
$_SERVER["HTTP_ACCEPT"] = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
$_SERVER["HTTP_ACCEPT_LANGUAGE"] = "zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3";
$_SERVER["HTTP_ACCEPT_ENCODING"] = "gzip, deflate";
$_SERVER["HTTP_CONNECTION"] = "keep-alive";
$_SERVER["HTTP_CACHE_CONTROL"] = "max-age=0";

define('ISRUN', TRUE);
require 'index.php';
?>